home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
programming
/
basic
/
mildred
/
lha
/
mildredtests.lha
/
MildredTest.ascii
< prev
next >
Wrap
Text File
|
1998-11-01
|
5KB
|
169 lines
WBStartup
;Test Mildred
FindScreen 0
Window 0,16,16,500,550,$2|$4|$400,"Test",0,1
WindowOutput 0
InitBank 0,(320*256)+16,$10001
MReservec2pWindows 3
MReserveBitmaps 3
MReserveShapes 3
MAutoCookie On
MAutoStencil On
MAutoUsec2pWindows On
MAutoUseShapes On
MAutoUseBitmaps On
MAutoShapeWrap Off
MAutoBitmapWrap Off
MAutoShapeClip On
MAutoBitmapClip Off
NPrint "Shapedata: $",Hex$(MShape(0,32,64))
MFreeCookie 0
MMakeCookie 0
MShapeClip 0,16,16,MShapeWidth(0)-16,MShapeHeight(0)-16
a.l=MAddrShape(0)
NPrint "Shape: $",Hex$(a)
NPrint "Width: ",NPeekW(a)
NPrint "Height: ",NPeekW(a+2)
NPrint "LineMod: ",NPeekW(a+4)
NPrint "Clipping:",NPeekB(a+6)
NPrint "Wrapping:",NPeekB(a+7)
NPrint "Data: $",Hex$(NPeekL(a+8))
NPrint "Stencil: $",Hex$(NPeekL(a+12))
NPrint "XHandle: ",NPeekW(a+16)
NPrint "YHandle: ",NPeekW(a+18)
NPrint "DMem: $",Hex$(NPeekL(a+20))
NPrint "DBytes: ",NPeekL(a+24)
NPrint "SMem: $",Hex$(NPeekL(a+28))
NPrint "SBytes: ",NPeekL(a+32)
NPrint "DHere: ",NPeekB(a+36)
NPrint "SHere: ",NPeekB(a+37)
NPrint "ClipLMod:",NPeekW(a+38)
NPrint "ClipLeft:",NPeekW(a+40)
NPrint "ClipTop: ",NPeekW(a+42)
NPrint "ClipWidth",NPeekW(a+44)
NPrint "ClipHight",NPeekW(a+46)
NPrint "ClipBytes",NPeekL(a+48)
NPrint "WrapBytes",NPeekL(a+52)
NPrint "MChunkyShapeWidth is ",MShapeWidth(0)
NPrint "MChunkyShapeHeight is ",MShapeHeight(0)
NPrint "Current shape: ",MUsedShape
NPrint " "
MShapeWindow 0,2,8,8,32-16,64-8
MCludgeShapeStruct 2,1
MFreeCookies
MMakeCookies 1,2
a.l=MAddrShape(1)
NPrint "Shape: $",Hex$(a)
NPrint "Width: ",NPeekW(a)
NPrint "Height: ",NPeekW(a+2)
NPrint "LineMod: ",NPeekW(a+4)
NPrint "Clipping:",NPeekB(a+6)
NPrint "Wrapping:",NPeekB(a+7)
NPrint "Data: $",Hex$(NPeekL(a+8))
NPrint "Stencil: $",Hex$(NPeekL(a+12))
NPrint "XHandle: ",NPeekW(a+16)
NPrint "YHandle: ",NPeekW(a+18)
NPrint "DMem: $",Hex$(NPeekL(a+20))
NPrint "DBytes: ",NPeekL(a+24)
NPrint "SMem: $",Hex$(NPeekL(a+28))
NPrint "SBytes: ",NPeekL(a+32)
NPrint "DHere: ",NPeekB(a+36)
NPrint "SHere: ",NPeekB(a+37)
NPrint "ClipLMod:",NPeekW(a+38)
NPrint "ClipLeft:",NPeekW(a+40)
NPrint "ClipTop: ",NPeekW(a+42)
NPrint "ClipWidth",NPeekW(a+44)
NPrint "ClipHight",NPeekW(a+46)
NPrint "ClipBytes",NPeekL(a+48)
NPrint "WrapBytes",NPeekL(a+52)
NPrint "MChunkyShapeWidth is ",MShapeWidth(1)
NPrint "MChunkyShapeHeight is ",MShapeHeight(1)
NPrint "Current shape: ",MUsedShape
NPrint " "
NPrint "Press mouse..."
MouseWait
WCls
WLocate 0,0
NPrint "Bank address: $",Hex$(Bank(0))
;NPrint "CludgeBitmapdata: $",Hex$(MCludgeBitmap(0,320,256,Bank(0)))
NPrint "CludgeBitmapdata: $",Hex$(MShapesBitmap(1,0))
MBitmapShape 0,1
MFreeStencil 0
MMakeStencil 0
MBitmapClip 0,4,8,MBitmapWidth(0)-4,MBitmapHeight(0)-8
a.l=MAddrBitmap(0)
NPrint "Bitmap: $",Hex$(a)
NPrint "Width: ",NPeekW(a)
NPrint "Height: ",NPeekW(a+2)
NPrint "LineMod: ",NPeekW(a+4)
NPrint "Clipping:",NPeekB(a+6)
NPrint "Wrapping:",NPeekB(a+7)
NPrint "Data: $",Hex$(NPeekL(a+8))
NPrint "Stencil: $",Hex$(NPeekL(a+12))
NPrint "XHandle: ",NPeekW(a+16)
NPrint "YHandle: ",NPeekW(a+18)
NPrint "DMem: $",Hex$(NPeekL(a+20))
NPrint "DBytes: ",NPeekL(a+24)
NPrint "SMem: $",Hex$(NPeekL(a+28))
NPrint "SBytes: ",NPeekL(a+32)
NPrint "DHere: ",NPeekB(a+36)
NPrint "SHere: ",NPeekB(a+37)
NPrint "ClipLMod:",NPeekW(a+38)
NPrint "ClipLeft:",NPeekW(a+40)
NPrint "ClipTop: ",NPeekW(a+42)
NPrint "ClipWidth",NPeekW(a+44)
NPrint "ClipHight",NPeekW(a+46)
NPrint "ClipBytes",NPeekL(a+48)
NPrint "WrapBytes",NPeekL(a+52)
NPrint "MChunkyBitmapWidth is ",MBitmapWidth(0)
NPrint "MChunkyBitmapHeight is ",MBitmapHeight(0)
NPrint "Current bitmap: ",MUsedBitmap
NPrint " "
MBitmapWindow 0,1,8,0,MBitmapWidth(0)-8,MBitmapHeight(0)-8
MCludgeBitmapStruct 1,2
MFreeStencils
MMakeStencils 1,2
MBitmapClip 2,4,8,MBitmapWidth(2)-4,MBitmapHeight(2)-8,On
a.l=MAddrBitmap(2)
NPrint "Bitmap: $",Hex$(a)
NPrint "Width: ",NPeekW(a)
NPrint "Height: ",NPeekW(a+2)
NPrint "LineMod: ",NPeekW(a+4)
NPrint "Clipping:",NPeekB(a+6)
NPrint "Wrapping:",NPeekB(a+7)
NPrint "Data: $",Hex$(NPeekL(a+8))
NPrint "Stencil: $",Hex$(NPeekL(a+12))
NPrint "XHandle: ",NPeekW(a+16)
NPrint "YHandle: ",NPeekW(a+18)
NPrint "DMem: $",Hex$(NPeekL(a+20))
NPrint "DBytes: ",NPeekL(a+24)
NPrint "SMem: $",Hex$(NPeekL(a+28))
NPrint "SBytes: ",NPeekL(a+32)
NPrint "DHere: ",NPeekB(a+36)
NPrint "SHere: ",NPeekB(a+37)
NPrint "ClipLMod:",NPeekW(a+38)
NPrint "ClipLeft:",NPeekW(a+40)
NPrint "ClipTop: ",NPeekW(a+42)
NPrint "ClipWidth",NPeekW(a+44)
NPrint "ClipHight",NPeekW(a+46)
NPrint "ClipBytes",NPeekL(a+48)
NPrint "WrapBytes",NPeekL(a+52)
NPrint "MChunkyBitmapWidth is ",MBitmapWidth(0)
NPrint "MChunkyBitmapHeight is ",MBitmapHeight(0)
NPrint "Current bitmap: ",MUsedBitmap
NPrint " "
MUseShape 0
MUseBitmap 0
MFreec2pWindows 0,2
MFreeShapes 0,2
MFreeBitmaps 0,2